﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using TCKQKL.FrontEnd.Config;
using TCKQKL.FrontEnd.DataModel;
using TCKQKL.Service.LookupClient;

namespace TCKQKL.FrontEnd.Web.Controls
{
    public partial class PersonalTradingResult : System.Web.UI.UserControl
    {
        public PersonalTradingResultUI personal = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (personal == null)
                {
                    LSClient client = new LSClient();
                    personal = client.getPersonalTradingResult(client.getAccountData(HttpContext.Current.User.Identity.Name).investorId, false);
                    client.Close();
                }
            }
            catch
            {
                throw;
            }
        }
    }
}